package ArrayList;


import java.text.SimpleDateFormat;
import java.util.Date;

public class SImp {
    public static void main(String[] args) {
        Date time1=new Date();
        SimpleDateFormat time=new SimpleDateFormat("y-m-d h:m:s E");//获取时间的格式
        String  now=time.format(new Date());

        System.out.println(now);

    }
}
